import request from '@/utils/request'
// 通过
export function pass(data) {
  return request({
    url: '/system/userFeedback/pass',
    method: 'post',
    data: data
  })
}


// 拒绝
export function refuse(data) {
  return request({
    url: '/system/userFeedback/refuse',
    method: 'post',
    data: data
  })
}
// 查询反馈列表
export function listUserFeedback(query) {
  return request({
    url: '/system/userFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询反馈详细
export function getUserFeedback(id) {
  return request({
    url: '/system/userFeedback/' + id,
    method: 'get'
  })
}

// 新增反馈
export function addUserFeedback(data) {
  return request({
    url: '/system/userFeedback',
    method: 'post',
    data: data
  })
}

// 修改反馈
export function updateUserFeedback(data) {
  return request({
    url: '/system/userFeedback',
    method: 'put',
    data: data
  })
}

// 删除反馈
export function delUserFeedback(id) {
  return request({
    url: '/system/userFeedback/' + id,
    method: 'delete'
  })
}
